package com.monster.spring.cloud.alibaba.provider01.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 *
 * @author Yuanml on 2021/5/26 21:53
 */
@RestController
@RequestMapping("/echo")
public class EchoController {
    @GetMapping("/hello/{name}")
    public String hello(@PathVariable("name") String name) {
        return "hello, " + name;
    }
}
